package com.gupaoedu.vip.factory.func;

/**
 * Created by zhaozhonghai on 2017/5/24.
 */
public class FunctionFactoryTest {
    public static void main(String[] args){
        DrinkFactory df=new CocaColaFactory();
        System.out.println(df.getDrink().getName());

        df=new SpriteFactory();
        System.out.println(df.getDrink().getName());

        df=new PepsiFactory();
        System.out.println(df.getDrink().getName());
    }
}
